using GameFramework;
using GameFramework.Procedure;
using GameFramework.Resource;
using UnityGameFramework.Runtime;
using ProcedureOwner = GameFramework.Fsm.IFsm<GameFramework.Procedure.IProcedureManager>;
namespace Framework
{
    public class ProcedureCheckVersion : ProcedureBase
    {
        protected override void OnEnter(ProcedureOwner procedureOwner)
        {
            base.OnEnter(procedureOwner);

            var result = GameEntry.GetComponent<ResourceComponent>().CheckVersionList(3);
            Log.Debug(result);
            if (result == GameFramework.Resource.CheckVersionListResult.NeedUpdate)
            {
                GameEntry.GetComponent<ResourceComponent>().UpdateResources((IResourceGroup resourceGroup, bool result) =>
                {

                });
            }
        }
    }
}